#set(title='我的二手书单',menu='secondtrade',statusMap={'0':'待审核','1':'交易中','2':'待发货','3':'待买家确认收货','4':'交易完成','5':'交易关闭','6':'审核拒绝'})
#@user_layout()
#define user_main()
	 <h1 class="page-header">#(title)</h1>
	 <div class="row">
			<ol class="breadcrumb">
			  <li><a href="#(ctx)/trade/soldlist">我的二手书单</a></li>
			  <li class="active">订单详情</li>
			</ol>
		</div>
	 	<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">订单基本信息 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="text-success">#(statusMap[trade.status+''])</span></h3>
			</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-sm-2 control-label"><p>订单编号</p></div>
					<div class="col-sm-4 text-left"><p>#(trade.id)</p></div>
					<div class="col-sm-2 control-label"><p>创建时间</p></div>
					<div class="col-sm-4 text-left"><p>#(trade.createTime)</p></div>
				</div>
				<div class="row">
					<div class="col-sm-2 control-label"><p>买家姓名</p></div>
					<div class="col-sm-4 text-left"><p>#(trade.buyerName)</p></div>
					<div class="col-sm-2 control-label"><p>买家手机</p></div>
					<div class="col-sm-4 text-left"><p>#(trade.buyerMobile)</p></div>
				</div>
				<div class="row">
					<div class="col-sm-2 control-label"><p>邮寄地址</p></div>
					<div class="col-sm-10 text-left"><p>#(trade.address)</p></div>
				</div>
			</div>
		</div>
	 	<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">订单明细</h3>
			</div>
			<div class="panel-body">
				<div class="table-responsive">
		            <table class="table table-striped ">
		              <caption class="text-danger">订单总金额：#(trade.soldTotal)（元）</caption>
		              <thead>
		                <tr>
		                  <th>书名</th>
		                  <th>价格（元）</th>
		                  <th>数量</th>
		                  <th>总价（元）</th>
		                   <th></th>
		                </tr>
		              </thead>
		              <tbody>
		             	<tr>
		                  <td><a href="#(ctx)/book/detail/#(trade.bookId)"><img src="#(uploadPah)#(trade.book.bookImg)" alt="book image" width="70px"></a>
	              				<a href="#(ctx)/book/detail/#(trade.bookId)">#(trade.book.name)</a></td>
		                  <td>¥#(trade.price)</td>
			              <td>#(trade.num)</td>
			              <td>¥#(trade.total)</td>
		                </tr>
		              </tbody>
		            </table>
		          </div>
			</div>
		</div>
#end
